import request from '@/utils/request'

// 查询格监控列表
export function listDispatchTableMonitor(query) {
  return request({
    url: '/system/dispatchTableMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询格监控详细
export function getDispatchTableMonitor(monitoringTableId) {
  return request({
    url: '/system/dispatchTableMonitor/' + monitoringTableId,
    method: 'get'
  })
}

// 新增格监控
export function addDispatchTableMonitor(data) {
  return request({
    url: '/system/dispatchTableMonitor',
    method: 'post',
    data: data
  })
}

// 修改格监控
export function updateDispatchTableMonitor(data) {
  return request({
    url: '/system/dispatchTableMonitor',
    method: 'put',
    data: data
  })
}

// 删除格监控
export function delDispatchTableMonitor(monitoringTableId) {
  return request({
    url: '/system/dispatchTableMonitor/' + monitoringTableId,
    method: 'delete'
  })
}
